#ifndef _GRAVE_H_
#define _GRAVE_H_
#endif

/*
Copyright (c)  2001-2006    xiaozhi

Moudle Name :

	 grave.h

Abstract :
	
	  Type definitions fot the basic sized types.

Author :
	
	xiaozhi

Date :

	2006/12/27	17:57

*/


/*
 * Constant dricist region
 */

#define	I		1
#define	addition	I++

#define	MessageX	"My Heart Will Go On"

#define	MAX(a, b)	((a) > (b)) ? (a) : (b)
#define	MIN(a, b)	((a) < (b)) ? (a) : (b)
#define	Low(a)		char low(char a) { \
				if(((a) < 97) && ((a) > 122))	\
					return a + 32;		\
					 }
					

typedef struct Link	*plink;
typedef struct Link	 node;

/*
 * Link table
 */
struct Link
{
	double data;
	struct plink *next;
};

/*
 * Disk information
 */
typedef struct _Disk
{
	DWORD	head;		/* head */
	DWORD	size;		/* disk size */
}Disk, *pDsik;



#ifdef MAJOR

#if (MAJOR == 1)
/* floppy */
#define DEVICE_NAME		"floppy disk"		/* device name */
#define DEVICE_SIZE		"4096"			/* floppy size */
#define DEVICE_INTR(floppy)	do_interrupt(floppy)	/* floppy interrupt */

#elif (MAJOR == 2)
/* hard disk */
#define DEVICE_NAME		"hard disk"		/* device name */
#define DEVICE_SIZE		get_disk_size()		/* get hard disk size */
#define DEVICE_INTR(disk)	do_interrupt(disk)	/* disk interrupt */

#elif (MARJOR == 3)
/* ram disk */
#define DEVICE_NAME		"ram disk"		/* ram disk */
#define DEVICE_SIZE		get_ram_size()		/* ram size */
#define DEVICE_INTR		do_interrupt(ram)	/* ram disk interrupt */	

#elif 
/* unkown device */
#error		"unkown device"

#endif	

#endif

	